# -*- coding: utf-8 -*-
"""
-------------------------------------------------
Project Name: luffcity study project
File Name: start.py
Author: kij
Create Date: 2021/3/18
-------------------------------------------------
"""
import os, sys
import socketserver
from concurrent.futures import ThreadPoolExecutor

BASE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)

from conf import setting
from view.server_view import MyFtp

if __name__ == "__main__":
	# server = socketserver.ThreadingTCPServer(setting.IP_POST, MyFtp)
	# server.serve_forever()
	pool = ThreadPoolExecutor(10)
	my_ftp = MyFtp()
	my_ftp.server(pool)
